/**
 * File Name	: DateUtil.java
 * Author		: Adelwin Handoyo
 * Create Date	: May 2, 2010:12:06:50 PM
 *
 */

package org.jampang.core.util;

import java.sql.Date;

public class DateUtil {
	
	public static final Date today() {
		Date date = new Date(System.currentTimeMillis());
		return date;
	}
	
	public static boolean isBeforeToday(Date input) {
		Date today = today();
		if (input.before(today)) {
			return true;
		} else {
			return false;
		}
	}
	
	public static final boolean isAfterToday(Date input) {
		return !isBeforeToday(input);
	}
}
